#include "calculator.h"
#include <assert.h>
#include <iostream>

using namespace std;


int main(int argc, char *argv[])
{
	assert(argc == 2);
	{
		Tokenizer tokenizer(argv[1]);
		Calculator calculator(tokenizer);
		double result = calculator.Calc();
		cout << result;
	}
	_CrtDumpMemoryLeaks();

	return 0;
}